//配置路由相关信息
import VueRouter  from 'vue-router'
import Vue from 'vue'

//安装插件
Vue.use(VueRouter)

//创建对象
const  routes= [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/',
      component: () => import('../components/common/Base.vue'),
      meta: {
        title: '公共部分'
      },
      children: [
        {
          path: '/index',
          component: () => import('../components/pages/Home.vue'),
          meta: {
            title: '系统首页'
          }
        },
        {
          path: '/myCente',
          component: () => import('../components/common/myCente.vue'),
          meta: {
            title: '个人中心'
          }
        },
        {
          path: '/auctionManage',
          component: () => import('../views/auctionManage/auctionManage/auctionManage'),
          meta: {
            title: '拍卖会管理'
          }
        },
        {
          path: '/noticeManage',
          component: () => import('../views/auctionManage/noticeManage/noticeManage'),
          meta: {
            title: '拍卖公告管理'
          }
        },
        {
          path: '/objectManage',
          component: () => import('../views/auctionManage/objectManage/objectManage'),
          meta: {
            title: '标的管理'
          }
        },
        {
          path: '/liveManage',
          component: () => import('../views/auctionManage/liveManage/liveManage'),
          meta: {
            title: '拍卖会直播管理'
          }
        },
        {
          path: '/auctioneerManage',
          component: () => import('../views/auctionManage/auctioneerManage/auctioneerManage'),
          meta: {
            title: '拍卖师管理'
          }
        },
        {
          path: '/entrustmentContract',
          component: () => import('../views/auctionManage/entrustmentContract/entrustmentContract'),
          meta: {
            title: '委托合同'
          }
        },
        {
          path: '/bidderManage',
          component: () => import('../views/bidderManage/bidderManage/bidderManage'),
          meta: {
            title: '竞买人管理'
          }
        },
        {
          path: '/sceneBidder',
          component: () => import('../views/bidderManage/sceneBidder/sceneBidder'),
          meta: {
            title: '现场竞买人库'
          }
        },

        {
          path: '/attractGoodsManage',
          component: () => import('../views/attractInvestmentManage/attractGoodsManage/attractGoodsManage'),
          meta: {
            title: '征集商品管理'
          }
        },

        {
          path: '/enterpriseManage',
          component: () => import('../views/accountManage/enterpriseManage/enterpriseManage'),
          meta: {
            title: '企业管理'
          }
        },

        {
          path: '/earnestMoneyManage',
          component: () => import('../views/financeManage/earnestMoneyManage/earnestMoneyManage'),
          meta: {
            title: '保证金管理'
          }
        },
        {
          path: '/serviceChargeManage',
          component: () => import('../views/financeManage/serviceChargeManage/serviceChargeManage'),
          meta: {
            title: '手续费管理'
          }
        },
        {
          path: '/bankCardManage',
          component: () => import('../views/financeManage/bankCardManage/bankCardManage'),
          meta: {
            title: '银行卡管理'
          }
        },
        {
          path: '/profit',
          component: () => import('../views/financeManage/profit/profit'),
          meta: {
            title: '利润分析'
          }
        },
        {
          path: '/my',
          component: () => import('../views/mallManage/my/my'),
          meta: {
            title: '我的招商'
          }
        },
        {
          path: '/workerManage',
          component: () => import('../views/systemAdministrator/workerManage/workerManage'),
          meta: {
            title: '员工管理'
          }
        },
        {
          path: '/userManage',
          component: () => import('../views/systemAdministrator/userManage/userManage'),
          meta: {
            title: '用户管理'
          }
        },
        {
          path: '/roleManage',
          component: () => import('../views/systemAdministrator/roleManage/roleManage'),
          meta: {
            title: '角色管理'
          }
        },
        {
          path: '/enterprisesManage',
          component: () => import('../views/systemAdministrator/enterprisesManage/enterprisesManage'),
          meta: {
            title: '企业管理'
          }
        },
        {
          path: '/authorityManage',
          component: () => import('../views/systemAdministrator/authorityManage/authorityManage'),
          meta: {
            title: '权限管理'
          }
        },
        {
          path: '/departmentManage',
          component: () => import('../views/systemAdministrator/departmentManage/departmentManage'),
          meta: {
            title: '部门管理'
          }
        },
        {
          path: '/bidderAccountManage',
          component: () => import('../views/systemAdministrator/bidderAccountManage/bidderAccountManage'),
          meta: {
            title: '竞买人账号管理'
          }
        },
        {
          path: '/carouselChartManage',
          component: () => import('../views/systemAdministrator/carouselChartManage/carouselChartManage'),
          meta: {
            title: '轮播图管理'
          }
        },
        {
          path: '/administrativeArea',
          component: () => import('../views/systemAdministrator/addressManage/administrativeArea'),
          meta: {
            title: '行政区划管理'
          }
        },
        {
          path: '/cooperationManage',
          component: () => import('../views/systemAdministrator/cooperationManage/cooperationManage'),
          meta: {
            title: '合作机构管理'
          }
        },
        {
          path: '/orderManage',
          component: () => import('../views/systemAdministrator/orderManage/orderManage'),
          meta: {
            title: '菜单管理'
          }
        },
        {
          path: '/auctionProcess',
          component: () => import('../views/systemAdministrator/auctionProcess/auctionProcess'),
          meta: {
            title: '竞拍流程'
          }
        },
        {
          path: '/dataDictionary',
          component: () => import('../views/systemAdministrator/dataDictionary/dataDictionary'),
          meta: {
            title: '数据字典'
          }
        },
        {
          path: '/auctioneerBackstage',
          component: () => import('../views/auctioneerBackstage/auctioneerBackstage/auctioneerBackstage'),
          meta: {
            title: '拍卖师后台'
          }
        },
        {
          path: '/notStarted',
          component: () => import('../views/auctioneerBackstage/notStarted/notStarted'),
          meta: {
            title: '查看拍卖'
          }
        },
      ]
    },
    {
      path: '/login',
      component: () => import('../components/pages/Login.vue')
    },
  ]

const router= new VueRouter({
    routes

})

export default  router
 